package com.wimcorp.magic.board;

import java.rmi.RemoteException;

import com.wimcorp.magic.cards.PlayingCard;
import com.wimcorp.magic.players.Player;

public class Exile extends Cards {

	public Exile(Player player) {
		super(player);
	}

	@Override
	protected void messagePlayersCardAdded(PlayingCard card) {
		try {

			getPlayer().getUserInterface().message(String.format("Card %s was exiled. ", card.getName()));
			getPlayer().getOpponent().getUserInterface()
					.message(String.format("Opponent's Card %s was exiled. ",card.getName()));
		} catch (RemoteException e) {
			e.printStackTrace();
		}
	}

}
